
var blockSize:int;
var blockArmor:int;
var blockType:int;
var trapToggle:boolean;
//Logic 1, Passion 2, Ethics 3, Deception 4

function TowerBlock(inSize, inArmor, inType)
{
	this.blockSize=inSize;
	this.blockArmor=inArmor;
	this.blockType=inType;
}

function SetBlockSize(inSize:int)
{
	this.blockSize=inSize;
}

function GetBlockSize()
{
	return this.blockSize;
}

function GetBlockArmor()
{
	return this.blockArmor;
}

function setTrap(state:boolean)
{ 
	this.trapToggle=state;
}



function Update(){
	if (blockSize<=0) blockSize=0;
	this.gameObject.transform.localScale= Vector3(transform.localScale.x,10*(blockSize/10.0),transform.localScale.z);
	
	}
	
